package com.ts.api.module.match.market.internal.wrapper.model;

import com.ts.api.module.channel.entity.po.ChannelUserFormFieldPO;
import com.ts.api.module.channel.entity.po.ChannelUserRegisterPO;
import lombok.Data;

import java.util.List;

/**
 *  贷超联登数据实体
 *
 *  @author Pan
 */
@Data
public class MarketFederate {

    /** 用户注册对象 */
    private ChannelUserRegisterPO channelUserRegisterPO;
    /** 用户表单对象 */
    private List<ChannelUserFormFieldPO> listUserFormFieldPO;

    /**
     *  构建
     *
     *  @param  channelUserRegisterPO
     *  @param  listUserFormFieldPO
     *  @return MarketFederate
     */
    public static MarketFederate of(ChannelUserRegisterPO channelUserRegisterPO, List<ChannelUserFormFieldPO> listUserFormFieldPO) {
        MarketFederate marketFederate = new MarketFederate();
        marketFederate.setChannelUserRegisterPO(channelUserRegisterPO);
        marketFederate.setListUserFormFieldPO(listUserFormFieldPO);
        return marketFederate;
    }
}
